<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
include "/library/receipt.php";
$output = viewOneProduct($_GET['id']);
?>

 <?php   $print= $output; ?>

    <tr id="product<?=$print['id']; ?>">
        <td ><?=product_id_check($print['product_id']); ?><input type="hidden" name="product_id[]" value="<?=$print['id']; ?>"></td>
        <td ><?=$print['name']; ?></td>
        <td ><? if(isset($_GET['priceperone'])) echo $_GET['priceperone']; else echo $print['priceperone'];?><input type="hidden" name="priceperone[]" value="<? if(isset($_GET['priceperone'])) echo $_GET['priceperone']; else echo $print['priceperone'];?>"></td>
        <td ><input type="text" name="amount[]" value="<? if(isset($_GET['amount'])) echo $_GET['amount']; else echo "0";?>" size="4"></td>
        <td ><?=$print['unit_name']; ?>  </td>
        <td><a href="#" onClick="delProduct('<?=$print['id']; ?>');">ลบ</a></td>


    <tr>
